home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 June / EnigmA AMIGA RUN 08 (1996)(G.R. Edizioni)(IT)[!][issue 1996-06][EARSAN CD VII].iso / earcd / utilsys / rss14gmd.lha / RSys_1.4gmd / smakefile < prev    next >
Makefile  |  1996-05-05  |  10KB  |  399 lines

  1. #
  2. #
  3. #
  4. # SAS/C SMakefile for RSys1.4gmd
  5. #
  6. #    - for SAS/C 6.5x  by Gary Duncan 
  7. #
  8. LFLAGS =  noicons quiet
  9.  
  10. #
  11. # activate SF below for debug
  12. #
  13. ##SF = debug = sf
  14. SF
  15.  
  16. CC =  sc
  17. LN =  slink 
  18. AS =  asm
  19.  
  20. #
  21. GST = gst
  22. #
  23.  
  24. #
  25. # Object File dest dirs 
  26. #
  27. OBJ_C = O_C/
  28. OBJ_ASM = O_ASM/
  29. #
  30. #  Source File dirs
  31. #
  32. SRC_C = C/
  33. SRC_ASM = Asm/
  34. #
  35.  
  36. PROTO = protos
  37.  
  38. CFLAGS = \
  39.  gst=$(GST) data=far ObjectName=$(OBJ_C) noicons novers mccons $(SF)
  40.  
  41. #
  42. PROG =  Rsys 
  43. #
  44. PR =  gst=$(GST) novers genprotos  mccons  noicons
  45. #
  46. INCPR =  Proto/
  47. INC =  Inc/
  48. #
  49. OBJS = $(C_OBJS) $(ASM_OBJS)
  50. #
  51. C_INCS =  RSys.h  $(INC)RSysPre.h $(INC)RSysEnum.h typedefs.h
  52.  
  53. #
  54. # C objs
  55. #
  56. C_OBJS =  \
  57. $(OBJ_C)Iconify.o \
  58. $(OBJ_C)Init.o \
  59. $(OBJ_C)Action.o \
  60. $(OBJ_C)Broker.o \
  61. $(OBJ_C)CheckOffsets.o \
  62. $(OBJ_C)Clip.o \
  63. $(OBJ_C)CRC.o \
  64. $(OBJ_C)Crypt.o \
  65. $(OBJ_C)Displays.o \
  66. $(OBJ_C)Doslists.o \
  67. $(OBJ_C)Error.o \
  68. $(OBJ_C)Extern.o \
  69. $(OBJ_C)ExecLists.o \
  70. $(OBJ_C)FindFile.o \
  71. $(OBJ_C)Flush.o \
  72. $(OBJ_C)FormatDisk.o \
  73. $(OBJ_C)Filetype.o  \
  74. $(OBJ_C)GfxIntuiLists.o \
  75. $(OBJ_C)GfxCtrl.o \
  76. $(OBJ_C)Global.o \
  77. $(OBJ_C)HandlerList.o \
  78. $(OBJ_C)Help.o  \
  79. $(OBJ_C)Hunks.o \
  80. $(OBJ_C)InitData.o \
  81. $(OBJ_C)IntuiCtrl.o \
  82. $(OBJ_C)List.o \
  83. $(OBJ_C)Main.o  \
  84. $(OBJ_C)Modify.o \
  85. $(OBJ_C)Monitor.o \
  86. $(OBJ_C)PreferenceLists.o \
  87. $(OBJ_C)rsys.o \
  88. $(OBJ_C)SaveWindow.o \
  89. $(OBJ_C)Search.o \
  90. $(OBJ_C)ShowFont.o \
  91. $(OBJ_C)SummaryLists.o \
  92. $(OBJ_C)SignalTrap.o \
  93. $(OBJ_C)SpecialList.o \
  94. $(OBJ_C)TextFormatter.o \
  95. $(OBJ_C)TreeHunks.o  \
  96. $(OBJ_C)Utils.o 
  97. #
  98. # ASM objs
  99. #
  100. ASM_OBJS =  \
  101. $(OBJ_ASM)RSysIdents.o \
  102. $(OBJ_ASM)RSysTrap.o
  103. #
  104. # ASM-dependencies
  105. #
  106. $(OBJ_ASM)RSysIdents.o    : $(SRC_ASM)RSysIdents.asm 
  107. $(OBJ_ASM)RSysSprintf.o    : $(SRC_ASM)RSysSprintf.asm 
  108. $(OBJ_ASM)RSysTrap.o    : $(SRC_ASM)RSysTrap.asm
  109. #
  110. # C-dependencies
  111. #
  112. $(OBJ_C)Global.o    : $(SRC_C)Global.c    $(C_INCS)
  113. $(OBJ_C)Help.o        : $(SRC_C)Help.c
  114. $(OBJ_C)rsys.o        : $(SRC_C)rsys.c    $(C_INCS)
  115. $(OBJ_C)Action.o    : $(SRC_C)Action.c
  116. $(OBJ_C)Broker.o    : $(SRC_C)Broker.c
  117. $(OBJ_C)CheckOffsets.o    : $(SRC_C)CheckOffsets.c
  118. $(OBJ_C)Clip.o        : $(SRC_C)Clip.c
  119. $(OBJ_C)CRC.o        : $(SRC_C)CRC.c
  120. $(OBJ_C)Crypt.o        : $(SRC_C)Crypt.c
  121. $(OBJ_C)Displays.o    : $(SRC_C)Displays.c
  122. $(OBJ_C)Doslists.o    : $(SRC_C)Doslists.c
  123. $(OBJ_C)Error.o        : $(SRC_C)Error.c
  124. $(OBJ_C)ExecLists.o    : $(SRC_C)ExecLists.c
  125. $(OBJ_C)FindFile.o    : $(SRC_C)FindFile.c
  126. $(OBJ_C)Flush.o        : $(SRC_C)Flush.c
  127. $(OBJ_C)FormatDisk.o    : $(SRC_C)FormatDisk.c
  128. $(OBJ_C)GfxCtrl.o    : $(SRC_C)GfxCtrl.c
  129. $(OBJ_C)Extern.o    : $(SRC_C)Extern.c
  130. $(OBJ_C)GfxIntuiLists.o    : $(SRC_C)GfxIntuiLists.c
  131. $(OBJ_C)HandlerList.o    : $(SRC_C)HandlerList.c
  132. $(OBJ_C)Hunks.o        : $(SRC_C)Hunks.c
  133. $(OBJ_C)Iconify.o    : $(SRC_C)Iconify.c
  134. $(OBJ_C)Init.o        : $(SRC_C)Init.c
  135. $(OBJ_C)InitData.o    : $(SRC_C)InitData.c
  136. $(OBJ_C)IntuiCtrl.o    : $(SRC_C)IntuiCtrl.c
  137. $(OBJ_C)List.o        : $(SRC_C)List.c
  138. $(OBJ_C)Main.o        : $(SRC_C)Main.c    
  139. $(OBJ_C)Modify.o    : $(SRC_C)Modify.c
  140. $(OBJ_C)Monitor.o    : $(SRC_C)Monitor.c
  141. $(OBJ_C)PreferenceLists.o:     $(SRC_C)PreferenceLists.c
  142. $(OBJ_C)SaveWindow.o    : $(SRC_C)SaveWindow.c
  143. $(OBJ_C)Search.o    : $(SRC_C)Search.c
  144. $(OBJ_C)ShowFont.o    : $(SRC_C)ShowFont.c
  145. $(OBJ_C)TextFormatter.o    : $(SRC_C)TextFormatter.c
  146. $(OBJ_C)TreeHunks.o    : $(SRC_C)TreeHunks.c
  147. $(OBJ_C)SignalTrap.o    : $(SRC_C)SignalTrap.c
  148. $(OBJ_C)SpecialList.o    : $(SRC_C)SpecialList.c
  149. $(OBJ_C)SummaryLists.o    : $(SRC_C)SummaryLists.c
  150. $(OBJ_C)Filetype.o    : $(SRC_C)Filetype.c
  151. $(OBJ_C)Utils.o        : $(SRC_C)Utils.c
  152.  
  153.  
  154. all:    clean  clean_protos $(GST) protos $(PROG)
  155.  
  156. clean:
  157.     -delete $(OBJ_C)\#?.o  >nil:
  158.     -delete $(OBJ_ASM)\#?.o >nil:
  159.  
  160. clean_protos:
  161.     -delete $(INCPR)\#?.h  >nil:
  162.  
  163. .asm.o:
  164.     $(AS) -iinclude: -o$(OBJ_ASM) $*.asm 
  165.  
  166. .c.o:
  167.     $(CC) $(CFLAGS) $*.c
  168.  
  169. $(PROG):  $(GST) $(ASM_OBJS) $(C_OBJS) link 
  170.  
  171. #-------------------------------------------------------------------
  172.  
  173.  
  174. link:
  175.        slink with <<
  176.     FROM lib:c.o
  177.     FROM $(C_OBJS)
  178.     FROM $(ASM_OBJS)
  179.     TO $(PROG) 
  180.     LIB  lib:sc.lib  lib:amiga.lib
  181.     noicons quiet batch
  182. <
  183.  
  184. #-------------------------------------------------------------------
  185.  
  186. gst:    
  187.     sc noobjname mgst=$(GST) $(SRC_C)global.c noicons novers
  188.     @Filenote $(GST) NOBACKUP
  189.  
  190. indent: 
  191.     indent -gnu $(SRC_C)Action.c
  192.     indent -gnu $(SRC_C)Broker.c
  193.     indent -gnu $(SRC_C)CheckOffsets.c
  194.     indent -gnu $(SRC_C)Clip.c
  195.     indent -gnu $(SRC_C)CRC.c
  196.     indent -gnu $(SRC_C)Crypt.c
  197.     indent -gnu $(SRC_C)Displays.c
  198.     indent -gnu $(SRC_C)Doslists.c
  199.     indent -gnu $(SRC_C)Error.c
  200.     indent -gnu $(SRC_C)ExecLists.c
  201.     indent -gnu $(SRC_C)Extern.c
  202.     indent -gnu $(SRC_C)Filetype.c
  203.     indent -gnu $(SRC_C)FindFile.c
  204.     indent -gnu $(SRC_C)Flush.c
  205.     indent -gnu $(SRC_C)FormatDisk.c
  206.     indent -gnu $(SRC_C)GfxCtrl.c
  207.     indent -gnu $(SRC_C)GfxIntuiLists.c
  208.     indent -gnu $(SRC_C)Global.c
  209.     indent -gnu $(SRC_C)HandlerList.c
  210.     indent -gnu $(SRC_C)Help.c
  211.     indent -gnu $(SRC_C)Hunks.c
  212.     indent -gnu $(SRC_C)Iconify.c
  213.     indent -gnu $(SRC_C)Init.c
  214.     indent -gnu $(SRC_C)InitData.c
  215.     indent -gnu $(SRC_C)IntuiCtrl.c
  216.     indent -gnu $(SRC_C)List.c
  217.     indent -gnu $(SRC_C)Main.c
  218.     indent -gnu $(SRC_C)Modify.c
  219.     indent -gnu $(SRC_C)Monitor.c
  220.     indent -gnu $(SRC_C)PreferenceLists.c
  221.     indent -gnu $(SRC_C)rsys.c
  222.     indent -gnu $(SRC_C)SaveWindow.c
  223.     indent -gnu $(SRC_C)Search.c
  224.     indent -gnu $(SRC_C)ShowFont.c
  225.     indent -gnu $(SRC_C)SignalTrap.c
  226.     indent -gnu $(SRC_C)SpecialList.c
  227.     indent -gnu $(SRC_C)SummaryLists.c
  228.     indent -gnu $(SRC_C)TextFormatter.c
  229.     indent -gnu $(SRC_C)TreeHunks.c
  230.     indent -gnu $(SRC_C)Utils.c
  231.  
  232. #
  233. # proto generation stuff
  234. #
  235.  
  236. proto_Global    : 
  237.     sc $(PR) GenProtoFile=$(INCPR)Global_protos.h  $(SRC_C)Global.c
  238.  
  239. proto_rsys    : 
  240.     sc $(PR) GenProtoFile=$(INCPR)rsys_protos.h  $(SRC_C)rsys.c
  241.  
  242. proto_ExecLists    : 
  243.     sc $(PR) GenProtoFile=$(INCPR)ExecLists_protos.h  $(SRC_C)ExecLists.c
  244.  
  245. proto_Iconify    : 
  246.     sc $(PR) GenProtoFile=$(INCPR)Iconify_protos.h  $(SRC_C)Iconify.c
  247.  
  248. proto_InitData    : 
  249.     sc $(PR) GenProtoFile=$(INCPR)InitData_protos.h  $(SRC_C)InitData.c
  250.  
  251. proto_Help    : 
  252.     sc $(PR) GenProtoFile=$(INCPR)Help_protos.h  $(SRC_C)Help.c
  253.  
  254. proto_SaveWindow    : 
  255.     sc $(PR) GenProtoFile=$(INCPR)SaveWindow_protos.h  $(SRC_C)SaveWindow.c
  256.  
  257. proto_Crypt    : 
  258.     sc $(PR) GenProtoFile=$(INCPR)Crypt_protos.h  $(SRC_C)Crypt.c
  259.  
  260. proto_FindFile    : 
  261.     sc $(PR) GenProtoFile=$(INCPR)FindFile_protos.h  $(SRC_C)FindFile.c
  262.  
  263. proto_FormatDisk    : 
  264.     sc $(PR) GenProtoFile=$(INCPR)FormatDisk_protos.h  $(SRC_C)FormatDisk.c
  265.  
  266. proto_Broker    : 
  267.     sc $(PR) GenProtoFile=$(INCPR)Broker_protos.h  $(SRC_C)Broker.c
  268.  
  269. proto_Doslists    : 
  270.     sc $(PR) GenProtoFile=$(INCPR)Doslists_protos.h  $(SRC_C)Doslists.c
  271.  
  272. proto_SignalTrap    : 
  273.     sc $(PR) GenProtoFile=$(INCPR)SignalTrap_protos.h  $(SRC_C)SignalTrap.c
  274.  
  275. proto_SpecialList    : 
  276.     sc $(PR) GenProtoFile=$(INCPR)SpecialList_protos.h  $(SRC_C)SpecialList.c
  277.  
  278. proto_Action    : 
  279.     sc $(PR) GenProtoFile=$(INCPR)Action_protos.h  $(SRC_C)Action.c
  280.  
  281. proto_PreferenceLists    : 
  282.     sc $(PR) GenProtoFile=$(INCPR)PreferenceLists_protos.h  $(SRC_C)PreferenceLists.c
  283.  
  284. proto_CheckOffsets    : 
  285.     sc $(PR) GenProtoFile=$(INCPR)CheckOffsets_protos.h  $(SRC_C)CheckOffsets.c
  286.  
  287. proto_Clip    : 
  288.     sc $(PR) GenProtoFile=$(INCPR)Clip_protos.h  $(SRC_C)Clip.c
  289.  
  290. proto_CRC    : 
  291.     sc $(PR) GenProtoFile=$(INCPR)CRC_protos.h  $(SRC_C)CRC.c
  292.  
  293. proto_Displays    : 
  294.     sc $(PR) GenProtoFile=$(INCPR)Displays_protos.h  $(SRC_C)Displays.c
  295.  
  296. proto_Error    : 
  297.     sc $(PR) GenProtoFile=$(INCPR)Error_protos.h  $(SRC_C)Error.c
  298.  
  299. proto_Extern    : 
  300.     sc $(PR) GenProtoFile=$(INCPR)Extern_protos.h  $(SRC_C)Extern.c
  301.  
  302. proto_Filetype    : 
  303.     sc $(PR) GenProtoFile=$(INCPR)Filetype_protos.h  $(SRC_C)Filetype.c
  304.  
  305. proto_Flush    : 
  306.     sc $(PR) GenProtoFile=$(INCPR)Flush_protos.h  $(SRC_C)Flush.c
  307.  
  308. proto_GfxCtrl    : 
  309.     sc $(PR) GenProtoFile=$(INCPR)GfxCtrl_protos.h  $(SRC_C)GfxCtrl.c
  310.  
  311. proto_GfxIntuiLists    : 
  312.     sc $(PR) GenProtoFile=$(INCPR)GfxIntuiLists_protos.h  $(SRC_C)GfxIntuiLists.c
  313.  
  314. proto_HandlerList    : 
  315.     sc $(PR) GenProtoFile=$(INCPR)HandlerList_protos.h  $(SRC_C)HandlerList.c
  316.  
  317. proto_Hunks    : 
  318.     sc $(PR) GenProtoFile=$(INCPR)Hunks_protos.h  $(SRC_C)Hunks.c
  319.  
  320. proto_IntuiCtrl    : 
  321.     sc $(PR) GenProtoFile=$(INCPR)IntuiCtrl_protos.h  $(SRC_C)IntuiCtrl.c
  322.  
  323. proto_List    : 
  324.     sc $(PR) GenProtoFile=$(INCPR)List_protos.h  $(SRC_C)List.c
  325.  
  326. proto_Main    : 
  327.     sc $(PR) GenProtoFile=$(INCPR)Main_protos.h  $(SRC_C)Main.c
  328.  
  329. proto_Modify    : 
  330.     sc $(PR) GenProtoFile=$(INCPR)Modify_protos.h  $(SRC_C)Modify.c
  331.  
  332. proto_Monitor    : 
  333.     sc $(PR) GenProtoFile=$(INCPR)Monitor_protos.h  $(SRC_C)Monitor.c
  334.  
  335. proto_Search    : 
  336.     sc $(PR) GenProtoFile=$(INCPR)Search_protos.h  $(SRC_C)Search.c
  337.  
  338. proto_ShowFont    : 
  339.     sc $(PR) GenProtoFile=$(INCPR)ShowFont_protos.h  $(SRC_C)ShowFont.c
  340.  
  341. proto_SummaryLists    : 
  342.     sc $(PR) GenProtoFile=$(INCPR)SummaryLists_protos.h  $(SRC_C)SummaryLists.c
  343.  
  344. proto_TextFormatter    : 
  345.     sc $(PR) GenProtoFile=$(INCPR)TextFormatter_protos.h  $(SRC_C)TextFormatter.c
  346.  
  347. proto_TreeHunks    : 
  348.     sc $(PR) GenProtoFile=$(INCPR)TreeHunks_protos.h  $(SRC_C)TreeHunks.c
  349.  
  350. proto_Utils    : 
  351.     sc $(PR) GenProtoFile=$(INCPR)Utils_protos.h  $(SRC_C)Utils.c
  352.  
  353. proto_Init    : 
  354.     sc $(PR) GenProtoFile=$(INCPR)Init_protos.h  $(SRC_C)Init.c
  355.  
  356. protos:  proto_Global    \
  357.      proto_rsys    \
  358.      proto_ExecLists    \
  359.      proto_Iconify    \
  360.      proto_InitData    \
  361.      proto_Help    \
  362.      proto_SaveWindow    \
  363.      proto_Crypt    \
  364.      proto_FindFile    \
  365.      proto_FormatDisk    \
  366.      proto_Hunks    \
  367.      proto_CRC    \
  368.      proto_Action    \
  369.      proto_Broker    \
  370.      proto_Doslists    \
  371.      proto_SignalTrap    \
  372.      proto_SpecialList    \
  373.      proto_PreferenceLists    \
  374.      proto_CheckOffsets    \
  375.      proto_Clip    \
  376.      proto_Displays    \
  377.      proto_Error    \
  378.      proto_Extern    \
  379.      proto_Filetype    \
  380.      proto_Flush    \
  381.      proto_GfxCtrl    \
  382.      proto_GfxIntuiLists    \
  383.      proto_HandlerList    \
  384.      proto_Hunks    \
  385.      proto_Utils    \
  386.      proto_IntuiCtrl    \
  387.      proto_List    \
  388.      proto_Main    \
  389.      proto_Modify    \
  390.      proto_Monitor    \
  391.      proto_Search    \
  392.      proto_ShowFont    \
  393.      proto_SummaryLists    \
  394.      proto_TextFormatter    \
  395.      proto_TreeHunks    \
  396.      proto_Init
  397.  
  398.  
  399.